home *** CD-ROM | disk | FTP | other *** search
- // %filename% -- main program
- // Created %date% %time% by AppMaker
-
- #ifndef __MACAPP__
- #include <MacApp.h>
- #endif
-
- #ifndef __U%appname%App__
- #include <U%appname%App.h>
- #endif
-
- // following are alternative to #include
- // to get around "free store exhausted" when compiling
-
- extern pascal void InitUGridView();
- extern pascal void InitUTEView();
- extern pascal void InitUDialog();
- extern pascal void InitUPrinting();
-
- #pragma processor 68000
-
- #pragma segment Main
- //----------
- void main ()
- {
- T%Appname%App% %*g%Appname%App;
-
- InitToolBox ();
- if (ValidateConfiguration (gConfiguration)) {
- InitUMacApp (10); // number of calls to MoreMasters
- InitUGridView ();
- InitUTEView ();
- InitUDialog ();
- InitUPrinting ();
-
- g%Appname%App = new T%Appname%App;
- g%Appname%App->I%Appname%App ();
- g%Appname%App->Run ();
- } else {
- StdAlert (phUnsupportedConfiguration);
- }
- } /* main */
-
- /* %appname% */
-